package com.itheima.tlias08_14.paramobject;

import lombok.Data;
import lombok.Generated;
import org.hibernate.validator.constraints.Length;
import org.jetbrains.annotations.Range;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class UpdateStudentPO {
    private int id; // ID
    private String name; // 姓名
    @Length(min = 10, max = 10, message = "姓名长度必须在2-10之间")
    private String no; // 学号
    private Integer gender; // 性别, 说明: 1 男, 2 女
    @Length(min = 11, max = 11, message = "手机号必须为11位")
    private String phone; // 手机号
    @Length(min = 1 , max = 6 , message = "学历长度必须在1-6之间")
    private Integer degree; // 学历(1:初中,2:高中,3:大专,4:本科,5:硕士,6:博士)
    private String idCard; // 身份证号
    private Integer isCollege = 0; // 是否是院校学生 (1:是,0:否)
    private String address; // 地址
    private LocalDate graduationDate; // 毕业日期
    private Integer violationCount = 0; // 违纪次数
    private Integer violationScore = 0; // 违纪扣分
    private Integer clazzId; // 班级ID
}
